package com.taptech.doufu.util;

import android.content.Context;
import android.view.WindowManager;

import com.taptech.doufu.ui.dialog.CpAddContentDialog;
import com.taptech.doufu.R;

/**
 * Created by lsy on 2015/9/22.
 */
public class DisplayUtil
{


    static public void makeAddContentPopupWindow(Context context, int type)
    {
        CpAddContentDialog addContentPopuWindow = new CpAddContentDialog(context, R.style.UgcSweepDialog, type);
        addContentPopuWindow.show();
        android.view.WindowManager.LayoutParams lp = addContentPopuWindow.getWindow().getAttributes();
        lp.width = WindowManager.LayoutParams.MATCH_PARENT;
        lp.height = WindowManager.LayoutParams.MATCH_PARENT;
        addContentPopuWindow.getWindow().setAttributes(lp);
    }
}
